package org.go.trigger;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class CalendarContent {
	private static Map<String, Calendar> calendarsByName = new ConcurrentHashMap<String, Calendar>(25);

	public static Calendar getCalendar(String key) {
		return calendarsByName.get(key);
	}

	public static void remove(String calName) {
		calendarsByName.remove(calName);
	}

	public static Calendar setCalendar(String key, Calendar calendar) {
		return calendarsByName.put(key, calendar);
	}
}
